/*
 * EpollTypes.h
 *
 *  Created on: 2009-3-25
 *      Author: P.Weiwen
 */

#ifndef EPOLLTYPES_H_
#define EPOLLTYPES_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define debug(format, ...) printf (format, ## __VA_ARGS__)

typedef		int		fd_t;
typedef 	int 	Time_Value;
typedef		int		EventType;

#define	READ_EVENT 		0x01
#define	ACCEPT_EVENT 	0x02
#define CONNECT_EVENT	0x04
#define	WRITE_EVENT 	0x08
#define	SIGNAL_EVENT 	0x10
#define	TIMEOUT_EVENT 	0x20
#define	CLOSE_EVENT 	0x40

#endif /* EPOLLTYPES_H_ */
